package com.zwlib.ui
{
	import fl.core.UIComponent;
	
	import flash.display.Graphics;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class TestUIForm extends Sprite
	{
		public function TestUIForm()
		{
			super();
			
			configUI();
		}
		
		private function configUI():void
		{
			
			
//			graphics.beginFill(0xff0000); 
//			graphics.drawRect(0,0,400,300); 
//			graphics.endFill(); 

			
			var tf:TextFormat = new TextFormat();
			
			tf.size = 20;
			
			tf.bold = true;
			
			tf.align = "center";
			
			var txt:TextField = new TextField();
			
			txt.text = "这是一个测试控件~~~";
			
			txt.setTextFormat( tf );
			
			txt.defaultTextFormat = tf;
			
			txt.width = 300;
			
			txt.x = 100;
			
			txt.y = 50;
			
			addChild( txt );
			
			/*
			var $graphics:Graphics = this.graphics;
			
			$graphics.clear();
			$graphics.beginFill( 0xff00ff, 1 );
			$graphics.drawRect( 0, 0, 400, 200 );
			$graphics.endFill();
			*/
			
		}
		
		
		
	}
}